#!/bin/bash

mkdir -p native-image/input
mkdir -p native-image/output

rm -rf target/native-image
mkdir -p target/native-image/input
mkdir -p target/native-image/output
mkdir -p target/native-image/output/dailycli/bin/
cp target/dailycli-1.0.jar target/native-image/input/
cp -r target/libs/* target/native-image/input/

native-image --module-path target/native-image/input/ \
--module dailytools.dailycli/dailytools.dailycli.Main \
-o target/native-image/output/dailycli/bin/dailycli
